//1.注册接口
const register = data => Ajax('../php/1.register.php', data, 'post');

//2.登录接口
const login = data => Ajax('../php/2.login.php', data, 'post');

// 3.请求商品列表
const good = data => Ajax('../php/3.goodlist.php', data, 'get');

// 4.请求全部商品列表
const goods = data => Ajax('../php/4.listAll.php', data, 'get');

// 5.详情页
const information = data => Ajax('../php/5.detail.php', data, 'post');

// 6.加入购物车
const shopping = data => Ajax('../php/6.addCart.php', data, 'post');

// 7.展示购物车
const show_cart = data => Ajax('../php/7.showCart.php', data, 'post');

// 8.删除
const del = data => Ajax('../php/8.delete.php', data, 'post');

//9.全部删除
const delAll = data => Ajax('../php/9.deleteAll.php', data, 'post');


// 10.修改密码
const modi = data => Ajax('../php/11.modify.php', data, 'post');

// 11.注销登录
const logName = data => Ajax('../php/10.log.php', data, 'post');

// 12.三级联动
const proDate = data => Ajax('../json/proData.json', data, 'get');